<div class="top-size-lg">
    <div>
        <div class="btn btn-default btn-sm text-back" style="display: inline-block;" ui-sref="app.login"><i
                class="glyphicon glyphicon-menu-left"></i>返回
        </div>
        <h4 class="pull-right" style="padding-top: 15px;">{{currentState.title}}</h4>
    </div>
    <div class="margin-top-15">
        <form class="form-horizontal" role="form" name="resetPwdForm">
            <div class="form-group">
                <label for="phoneNumber" class="col-sm-2 control-label">手机号</label>
                <div class="col-sm-10">
                    <input type="tel" class="form-control" id="phoneNumber" required minlength="11" maxlength="11"
                           ng-pattern="/^[0-9]{11}$/" ng-model="_user.phoneNumber">
                </div>
            </div>
            <div class="form-group">
                <label for="verificationCode" class="col-sm-2 col-xs-12 control-label">验证码</label>
                <div class="col-sm-6 col-xs-6">
                    <input type="text" class="form-control" id="verificationCode" required minlength="4" maxlength="4"
                           ng-pattern="/^[0-9]{4}$/" placeholder="请输入手机验证码" ng-model="_user.verificationCode">
                </div>
                <div class="col-sm-4 col-xs-6">
                    <button class="btn btn-info btn-block" ng-if="leftTime<0" ng-disabled="!_user.phoneNumber"
                            ng-click="countdown()">获取手机验证码
                    </button>
                    <a class="btn btn-info btn-block" ng-if="leftTime>=0">{{leftTime}}s 后重新获取</a>
                </div>
            </div>
            <div class="form-group">
                <label style="cursor: default" for="password" class="col-sm-2 control-label">新密码</label>
                <div class="col-sm-10">
                    <input type="password" class="form-control" id="password" placeholder="请输入6-18个字符" minlength="6"
                           maxlength="18" ng-pattern="/^[a-zA-Z0-9_]{6,18}$/" required ng-model="_user.password">
                </div>
            </div>
            <div class="form-group">
                <label style="cursor: default" for="rePassword" class="col-sm-2 control-label">确认密码</label>
                <div class="col-sm-10">
                    <input type="password" class="form-control" id="rePassword" placeholder="请输入6-18个字符" minlength="6"
                           maxlength="18" ng-pattern="/^[a-zA-Z0-9_]{6,18}$/" required ng-model="_user.rePassword">
                </div>
            </div>
            <div class="form-group" style="width:100%;text-align: center">
                <button class="btn btn-primary" style="width:200px;margin:5px auto 0;"
                        ng-disabled="!resetPwdForm.$valid" ng-click="resetPwd(_user)">确定
                </button>
            </div>
        </form>
    </div>
</div>